<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		当前系统时间：<span id="time"></span>
		</body>
		 
		 
		<script type="text/javascript">
			function getCurrentTime(){
				var date = new Date();
				var timeInfo =  date.getFullYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()+"日 "+
			date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
			
				var  spanObj = document.getElementById("time");
				spanObj.innerHTML = timeInfo.fontcolor("red");
			}
		 
			getCurrentTime();
		</script>
</html>
